fo = open("D:\hello.txt","w")
print("请输入要保存的文字(输入完成后用“。”句号退出):\n")
while 1:
    s = input("")
    if s == "。":
        break
    fo.write(s+"\n")
fo.close()
print("完成")
